////============================================================================
//// Name        : Elab3d.cpp
//// Author      :
//// Version     :
//// Copyright   : Your copyright notice
//// Description : Hello World in C++, Ansi-style
////============================================================================
//
//#include <opencv2/highgui/highgui.hpp>
//#include<opencv2/imgproc/imgproc.hpp>
//#include<opencv2/core/core.hpp>
//#include <iostream>
//
//void conv2(cv::Mat src, int kernel_size) {
//	cv::Mat dst, kernel;
//
//	kernel = cv::imread("filter2.jpg");
//
///// Apply filter
//	cv::filter2D(src, dst, -1, kernel, cv::Point(-1, -1), 0,
//			cv::BORDER_DEFAULT);
//	cv::namedWindow("filter2D Demo", CV_WINDOW_AUTOSIZE);
//	imshow("filter2D Demo", dst);
//	src = dst;
//	cv::imwrite("/home/nico/out.bmp", dst);
//}
//
//int main() {
//
//	const uchar THERESHOLD = 254;
//
//	cv::Mat img;
//	img = cv::imread("01_3d_pos.bmp");
//
//	int rows = img.rows;
//	int cols = img.cols;
//
//	std::cout << "Caricata immagine " << rows << "x" << cols << std::endl;
//
//	cv::cvtColor(img, img, CV_BGR2GRAY);
//
//	/* AWESOME! */
//	conv2(img, 2);
//
////	cv::imwrite("/home/nico/out.bmp", img);
//
////cv::imshow("img", img);
//
//	cv::waitKey(0);
//
//	return 0;
//
//}
